LassoScript Utility
Basics Browse Detail

[String->Integer]

Tag Link [String->Integer] Category String
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security Tag
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

The [String->Integer] tag returns the integer value of a character at a given position.

For example, ['A'->Integer] will return 65, since the letter 'A' is, numerically, number 65. ['Happy Day'->(Integer: 2)] will also return 65, as 'a' is the second character in the base string.

Syntax

[String Object->Integer]

[String Object->(Integer: Position)]

Parameters

Optional Parameters
Position The position of the character to return the numeric value of in the base string.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags